﻿///**********************************
/// Codeplex: http://jsprototype.codeplex.com/
/// Allrights reserved to Rynn Wang (rynn.wang@live.com)
///**********************************

var Dictionary = function () {
    this.data = new Object();
    this.keys = new Array();
    this.prototype = Array;

    this.add = function (key, value, overwrite) {

    }
    this.set = function (key, value) {
        this.prototype[key] = value;
    }
    this.get = function (key, defaultValue) {
        var value = this.prototype[key];
        if (typeof (value) == 'undefined') {
            value = defaultValue;
        }
        return value;
    }
    this.containsKey = function (key) {
        if (typeof (key) != 'undefined') {
            for (var i = 0; i < this.keys.length; i++) {
                if (this.keys[i] == key) {
                    return true;
                }
            }
        }
        return false;
    }
    this.remove = function (key) {
    }
    this.keys = function (key) {
    }
};

